class Role_menu_permissionFormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Role_menu_permissionTable'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Role_menu_permissionsApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Role_menu_permissionFormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Role_menu_permissionsAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "role_menu_permissions": "search"

                
myapp.addInitializer -> 
    myapp.Role_menu_permissions_app = new Role_menu_permissionsApp()
    myapp.Role_menu_permissions_app.router = new Role_menu_permissionsAppRouter controller: myapp.Role_menu_permissions_app

myapp.vent.trigger("routing:started")
